abstract class Person {
  name: String
}

class Teacher extends Person {
  subjects: List<String>
}

res1 = new Teacher {
  name = "Pigeon"
  subjects = List("Rocks", "Stone Age")
}

res2 = (res1) {
  name = "Parrot"
}

res3 = (res2) {
  subjects = List("Fire Making")
}
